var fs = require('fs');
 
var readerStream = fs.createReadStream('a.txt'); //创建可读流
var writeStream = fs.createWriteStream('b.txt');//创建可写流
readerStream.pipe(writeStream);
console.log("程序执行完毕!");